package com.mall.weapp.model.vo;

import com.mall.weapp.model.entity.Brand;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class BrandVo {

    private long id;
    private String name;
    private int sort;
    private Date createTime;
    private Date updateTime;

    public BrandVo(Brand brand){
        this.id = brand.getId();
        this.name = brand.getName();
        this.sort = brand.getSort();
        this.updateTime = brand.getUpdateTime();
        this.createTime = brand.getCreateTime();
    }
}
